<?php echo $this->partial("sidebar.phtml", array('type' => 'brand', 'name' => $this->brand_name, 'count' => array('trends' => count($this->trenddata), 'products' => count($this->brand_id), 'social' => 202,'connect'=>'on'))); ?>
<div class="products-scroller" style="background:#F0F0F0 url('<?php echo BRANDS_PATH; ?>/display/<?php echo $this->display_image; ?>') no-repeat left center;background-size:100%;">
    <div class="diamond-logo-description">
        <img src="<?php echo BRANDS_PATH; ?>/logo/<?php echo $this->logo_image; ?>" alt="image" class="logo-image"/>
    </div>
    <div class="diamond-description-block pull-left">

        <div class="clearfix upper-part">
            <div class="pull-left">
                <img src="<?php echo IMAGES_PATH; ?>/badges-gold.png" alt="image"/>
            </div>

<!--            <div class="subscribe pull-right">
                <p class="inline-block">Subscribe:</p>
                <ul class="socials inline-block">
                    <li><a href="#"><img src="<?php echo IMAGES_PATH; ?>/facebook-subscribe.png" alt="image"/></a></li>
                    <li><a href="#"><img src="<?php echo IMAGES_PATH; ?>/twitter-subscribe.png" alt="image"/></a></li>
                    <li style="position: relative"><a href="#"><img src="<?php echo IMAGES_PATH; ?>/plus-subscribe.png" alt="image"/></a>
                        <ul class="bubble bubble-top" style="right: -9px;width: 180px;">
                            <li><a href="#"><img src="<?php echo IMAGES_PATH; ?>/instagram-subscribe.png" alt="image"/></a></li>
                            <li><a href="#"><img src="<?php echo IMAGES_PATH; ?>/youtube-subscribe.png" alt="image"/></a></li>
                            <li><a href="#"><img src="<?php echo IMAGES_PATH; ?>/pinterest-subscribe.png" alt="image"/></a></li>
                            <li><a href="#"><img src="<?php echo IMAGES_PATH; ?>/gplus-subscribe.png" alt="image"/></a></li>
                        </ul>
                    </li>
                </ul>
            </div>-->
        </div>

        <div class="lower-part">
            <p class="brand-unique-id">@<?php echo $this->brand_name; ?></p>
            <p class="title-above-description"><?php echo $this->brand_name; ?></p>
            <hr/>
            <div class="description-text vertical-scroller" style="overflow:hidden;">
                <p><?php echo stripslashes($this->brand_desc); ?></p>
            </div>
        </div>
    </div>

    <div class="trends-grid-block products-grid-block <?php echo $this->connect=='on'?'social-isotope':'isotope'; ?>" style="padding-left: 0 !important;">
        <?php
            echo $this->partial("product_blocks.phtml", array("alldata" => $this->alldata,'connect'=>$this->connect));
//            foreach($this->alldata as $Key=>$Val)
//            {
//                ?>
<!--                <div class="product-grid" >
                    <div class="product-details" style="background:url('//<?php echo PRODUCTS_PATH."/".$Val['images']; ?>') no-repeat scroll center 30% rgba(0, 0, 0, 0);background-size:127px 140px;">
                        <p class="text-right">$//<?php echo $Val['price']; ?></p>

                        <div class="product-desc">
                            <p class='product-title'><a href='//<?php echo APPLICATION_URL ?>/product/index/product_id/<?php echo $Val['rkn_prod_id']; ?>'><?php echo $Val['prod_name']; ?></a></p>
                            <p class='category'><a href='#'>//<?php echo $Val['cat_name']; ?></a> | <a href='#'>Footwear</a></p>
                        </div>
                    </div>
                    <div class="social-details">
                        <p class="pull-left">2 Likes</p>
                        <p class="pull-right">4 Shares</p>
                    </div>
                </div>-->
                <?php
//            }
        ?>

    </div>
</div>